package chapterSystem.client.interfaceDrawing.activities;

import chapterSystem.client.ChapterSystemService;
import chapterSystem.client.callbacks.LoggCallback;
import chapterSystem.client.callbacks.ReportsCallback;
import chapterSystem.client.model.entitiesInt.Brother;
import chapterSystem.client.model.enums.ActivityType;
import com.google.gwt.user.client.ui.StackLayoutPanel;

/**
 * User: Hasp
 * Date: 05.04.12
 * Time: 22:54
 */
public class ReportsActivity extends Activity {

    public ReportsActivity(final Brother brother) {
        super(brother, ActivityType.REPORT);
    }

    @Override
    public void drawActivity(StackLayoutPanel workArea) {
        ChapterSystemService.App.getInstance().getReportsById(brother.getId(), new ReportsCallback(workArea));
        ChapterSystemService.App.getInstance().addLog(brother.getId(), id, "Review reports",
                            new LoggCallback());
    }
}
